package edu.chl.jadetalk.core;

import java.io.Serializable;
import javax.persistence.Entity;

/**
 *
 * @author Daniel
 */
@Entity
public class Comment extends Entry implements Serializable {
    private static final long serialVersionUID = 1L;
    
    private String commentText;

    public String getCommentText() {
        return commentText;
    }

    public void setCommentText(String commentText) {
        this.commentText = commentText;
    }
    
    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Comment)) {
            return false;
        }
        Comment other = (Comment) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "edu.chl.jadetalk.core.Comment[ id=" + id + " ]";
    }
    
}
